//通过redux获取用户信息
import { useSelector } from "react-redux"
import { StateType } from "../store"
import { UserInfoType } from "../store/UserInfoReducer"
const useGetuserInfo = ()=>{
    const {username,nickname} = useSelector<StateType>((state)=>{
        return state.UserInfo_Reducer
    }) as UserInfoType
    return {
        username,nickname
    }
}

export default useGetuserInfo